using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" BTB to change the interface name "IBTBServices" in both code and config file together.
    [ServiceContract]
    public interface IBTBServices
    {
        [OperationContract]
        List<BTBDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(BTBDTO BTB);


        [OperationContract]
        bool Delete(BTBDTO BTB);

        [OperationContract]
        List<BTBDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                       out long recordCount);

        [OperationContract]
        List<BTBDTO> GetAllBTB();

        [OperationContract]
        BTBDTO GetBTB(string kodeBTB);

        [OperationContract]
        List<BTBDTO> GetBTBList(string kodeBTB);

        [OperationContract]
        string GetLastBTBNo();

        [OperationContract]
        Decimal GetSatuanPengali(ItemDTO itemDto);

        [OperationContract]
        bool DeleteDetail(BTBDetailDTO BTBDetailDto);

        [OperationContract]
        bool SendEmail(BTBDTO Btbdto, String DestinationFolder);
    }
}